package Java.j1;

import java.util.Scanner;

public class AcWing_654 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.close();

        int hours = n / 3600;
        int remainingSeconds = n % 3600;
        int minutes = remainingSeconds / 60;
        int seconds = remainingSeconds % 60;

        System.out.println(hours + ":" + minutes + ":" + seconds);
    }
}
